package untiring07.mvc.actions;

import java.io.IOException;
import java.rmi.ServerException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import untiring07.mvc.dao.BoardDAO;

public class UpdateBoardAction implements ActionHandler {

	@Override
	public String execute(HttpServletRequest req, HttpServletResponse res)
			throws ServerException, IOException {

		String viewPage = "f|/WEB-INF/jsp/tiles/mvc.jsp";
		String bdno =req.getParameter("bdno");
		req.setAttribute("action", "../board/view.jsp");
		req.setAttribute("boards", BoardDAO.updateBoard(bdno));
		// BoardDAO.viewCountBoard(bdno); //조회수
		return viewPage;
		
	}

}
